package org.zsqx.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cDao.annotation.FieldTypeAnnotation;

/**
 * Dstype entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DSTYPE", schema = "dbo", catalog = "BN4PS9Z220010012")
public class Dstype implements java.io.Serializable {

	// Fields
	@FieldTypeAnnotation(colum="dt_num",fieldType=Integer.class,isKey=true)
	private Integer dtNum;
	private Date dtAddtime;
	private String dtDes;
	private String dtName;

	// Constructors

	/** default constructor */
	public Dstype() {
	}

	/** minimal constructor */
	public Dstype(Integer dtNum, String dtName) {
		this.dtNum = dtNum;
		this.dtName = dtName;
	}

	/** full constructor */
	public Dstype(Integer dtNum, Date dtAddtime, String dtDes,
			String dtName) {
		this.dtNum = dtNum;
		this.dtAddtime = dtAddtime;
		this.dtDes = dtDes;
		this.dtName = dtName;
	}

	// Property accessors
	@Id
	@Column(name = "DT_NUM", unique = true, nullable = false)
	public Integer getDtNum() {
		return this.dtNum;
	}

	public void setDtNum(Integer dtNum) {
		this.dtNum = dtNum;
	}

	@Column(name = "DT_ADDTIME", length = 23)
	public Date getDtAddtime() {
		return this.dtAddtime;
	}

	public void setDtAddtime(Date dtAddtime) {
		this.dtAddtime = dtAddtime;
	}

	@Column(name = "DT_DES", length = 50)
	public String getDtDes() {
		return this.dtDes;
	}

	public void setDtDes(String dtDes) {
		this.dtDes = dtDes;
	}

	@Column(name = "DT_NAME", nullable = false, length = 50)
	public String getDtName() {
		return this.dtName;
	}

	public void setDtName(String dtName) {
		this.dtName = dtName;
	}

}